package com.jvm;

import java.util.ArrayList;
import java.util.List;

public class OomTest {
    public static void main(String[] args) throws InterruptedException {
        List<String> list=new ArrayList<>();
        while (true){
            list.add("a");
            Thread.sleep(10);
        }
    }
}
